package com.yixin.hospital.service;

import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.PurchaseOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.entity.dto.req.purchaseorder.GoDownDrugReqDTO;
import com.yixin.hospital.entity.dto.req.purchaseorder.PurchaseOrderAddReqDTO;

import javax.validation.Valid;

/**
* @author Administrator
* @description 针对表【purchase_order(采购单表)】的数据库操作Service
* @createDate 2024-04-22 17:23:33
*/
public interface PurchaseOrderService extends IService<PurchaseOrder> {

    ApiResult<?> allList(int currentPage, int pageSize, Integer status, Integer deptId, String type, Long userId);

    ApiResult<?> detail(int id);

    ApiResult<?> delete(int id);

    ApiResult<?> add(@Valid PurchaseOrderAddReqDTO purchaseOrderAddReqDTO, Long userId, String userName);

    ApiResult<?> godownDrug(@Valid GoDownDrugReqDTO goDownDrugReqDTO, String userName);
}
